package org.example;

class Staff extends BaseEntity {
    private String card_id;
    private String name;
    private String gender;
    private int age;
    private String id_number;
    private String create_time;

    public Staff() {
    }

    public Staff(String card_id, String name, String gender, int age, String id_number) {
        this.card_id = card_id;
        this.name = name;
        this.gender = gender;
        this.age = age;
        this.id_number = id_number;
    }

    @Override
    public String getPrimaryKey() {
        return "card_id";
    }

    public String getCard_id() {
        return card_id;
    }

    public void setCard_id(String card_id) {
        this.card_id = card_id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getId_number() {
        return id_number;
    }

    public void setId_number(String id_number) {
        this.id_number = id_number;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    @Override
    public String toString() {
        return String.format("卡号：%s, 姓名：%s, 性别：%s, 年龄：%d, 身份证号：%s, 创建时间：%s",
                card_id, name, gender, age, id_number, create_time);
    }
}
